﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="ViewCatalogueForClerk.aspx.cs" Inherits="PresentationLayer.View.WebForm2" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style17
        {
            height: 49px;
        }
        .style18
        {
            width: 75px;
            height: 49px;
        }
        
        .style15
        {
        }
        .style10
        {
            width: 51px;
        }
        .style16
        {
            width: 140px;
        }
        .style14
        {
            width: 236px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    <table width="100%">
    <tr>
        <td style="height:auto;width:250px;vertical-align:top;">
      
            <uc1:mainMenu ID="mainMenu1" runat="server" />
      
        </td>
        <td>
        <center>
            <b>
            <h2>
                <u>Catalogue List</u></h2>
            </b>
        </center>
        <br />
        <table>
            <tr>
                <td class="style17">
                    Category:&nbsp;&nbsp;</td>
                <td class="style17">
                    <asp:DropDownList ID="ddCategory" runat="server" AppendDataBoundItems="True" 
                        Height="30px" onselectedindexchanged="ddCategory_SelectedIndexChanged" 
                        Width="115px">
                        <asp:ListItem Value="0">All</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style18">
                    Bin No</td>
                <td class="style17">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:DropDownList ID="ddCategory0" runat="server" AppendDataBoundItems="True" 
                        Height="16px">
                        <asp:ListItem Value="0">All</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <caption>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </caption>
            <tr>
                <td>
                    Item name: </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                <td class="style15" colspan="2">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
                        Text="Search" />
                </td>
            </tr>
        </table>
        <table>
        <tr><td colspan="2">
            <asp:Label ID="Label1" runat="server" 
                Text="There is no item for these search criteria!" Visible="False" 
                Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label></td></tr>
            <tr>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                <td>
                    <asp:GridView ID="foo" runat="server" AllowPaging="True" 
                        autogeneratecolumns="False" CellPadding="4" 
                        ForeColor="#333333" GridLines="None" 
                        onpageindexchanging="foo_PageIndexChanging" Width="849px">
                        <AlternatingRowStyle BackColor="White" />
                        <columns>
                            <asp:TemplateField HeaderText="Sr.No">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:boundfield datafield="ItemId" headertext="Item Code" />
                            <asp:boundfield datafield="CategoryName" HeaderText="Category" />
                            <asp:boundfield datafield="Description" HeaderText="Name" />
                            <asp:boundfield datafield="ReorderLevel" HeaderText="Reorder Level" />
                            <asp:boundfield datafield="ReorderQty" HeaderText="Reorder Qty" />
                            <asp:boundfield datafield="UOM" HeaderText="Unit" />
                            <asp:boundfield datafield="BinId" HeaderText="Bin" />                            
                            </columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <EmptyDataTemplate>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                        </EmptyDataTemplate>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerSettings PageButtonCount="5" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        </td></tr></table>
    </div>
</asp:Content>
